-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make prediction thread safe. #6648
Conversation
I wonder why this change appears to break the Java package. |
@hcho3 Sorry, to split up the huge PR I have to cherry pick line by line so I just manually copied some code. Got the thread temp initialization wrong. |
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
As #6645 (comment) fixed a performance issue, the booster object in dask are no longer copied. So thread safety in predict must be guaranteed.